import java.util.Scanner;

public class Ex5_8{
	public static void main(String[] args){
		double c = 40.0;
		double f = 120.0;
		System.out.println("Celsius\t\tFahrenheit\tFahrenheit\tCelsius\n");
		for (int i = 0; i < 10; i++){
			System.out.printf("%.1f\t\t%.1f\t\t%.1f\t\t%.1f\n", 
				c, celsiusToFahrenheit(c), f, fahrenheitToCelsius(f));
			c -= 1;
			f -= 10;
		}
	}

	public static double celsiusToFahrenheit(double celsius){
		return 9.0 / 5 * celsius + 32;
	}

	public static double fahrenheitToCelsius(double fahrenheit){
		return (fahrenheit - 32) * 5 / 9;
	}
}
